package com.mtable.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.mtable.entity.Mtable;
import com.mtable.service.MtableService;

@Controller
public class MtableAction {
	
	@Autowired
	private MtableService mtableService;
	
	@RequestMapping("/mtable/listMtable")
	public String listMtable(HttpServletRequest request){
		List<Mtable> mtableList = mtableService.findAll();
		request.setAttribute("mtableList", mtableList);
		return "mtableList";
	}

}
